//created by: Justina Lee

Ext.define("MajorProjectSenchaTouch.model.EResource", {
    extend: "Ext.data.Model",
    xtype: "eResourceModel",
    config:{
        fields:[
        {
            name: 'categoryName',
            type: 'string'
        },
        {
            name: 'name', 
            type: 'string'
        },

        {
            name: 'description', 
            type: 'string'
        },

        {
            name: 'image', 
            type: 'string'
        }
        ],
        hasMany: {
            model: 'MajorProjectSenchaTouch.model.EResourcesUrl', 
            name: 'eResourcesUrls',
            associationKey: 'eResourcesUrls'
        }
    }    
});